package com.design.document.common;


import com.google.common.collect.Sets;

import java.util.Set;

public class Const {

    public static final String CURRENT_USER ="currentUser";
    public static final String USERNAME  ="userName";
    public static final String  TOPIC_NAME = "topicName";


    public interface LoginStatus{
        int ON_LINE = 1;
        int OFF_LINE = 0;
    }

    public interface Role{
        int ROLE_STUDENT =0;
        int ROLE_TEACHER = 1;

    }

    public interface MessageListOrderBy{
        Set<String> MESSAGE_ASC_DESC = Sets.newHashSet("message_asc","message_desc");
    }

    public enum MessageEnumStatus{
        ON_QUEUE(1,"已成功被消费"),
        OFF_QUEUE(0,"已存在于消息队列");
        private String value;
        private Integer code;

        MessageEnumStatus(Integer code,String value) {
            this.value = value;
            this.code = code;
        }

        public String getValue() {
            return value;
        }

        public Integer getCode() {
            return code;
        }
    }

}
